﻿"use strict";

var kospa = kospa || {};
kospa.order = kospa.order || {};

kospa.order = (function () {
    var orderVM = function () {

    };

    function initialize(vm) {
        vm.addViewModel({
            name: "Order",
            bindingMemberName: "order",
            factory: orderVM,
            navigatorFactory: function (vm) {
                return function (isNew) {
                    vm.view(vm.Views.Details);
                    if (isNew) {
                        vm.details().edit(isNew);
                    }
                }
            }
        });
    };

    return { initialize: initialize };
})();
